🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / app / src / main / java / com / geeksville / mesh / repository / bluetooth / BluetoothRepositoryModule.kt
Displaying Raw • Download
app/src/main/java/com/geeksville/mesh/repository/bluetooth/BluetoothRepositoryModule.kt 78274c792318331b11ab64cd28e58e829875b8c2 (78274c79) Text, 1.65 KB
T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787com.geeksville.mesh.repository.bluetooth
Tff7b72import T7ee787android.content.Context
Tff7b72import T7ee787dagger.Module
Tff7b72import T7ee787dagger.Provides
Tff7b72import T7ee787dagger.hilt.InstallIn
Tff7b72import T7ee787dagger.hilt.android.qualifiers.ApplicationContext
Tff7b72import T7ee787dagger.hilt.components.SingletonComponent
Tff7b72import T7ee787kotlinx.coroutines.CoroutineScope
Tff7b72import T7ee787kotlinx.coroutines.Dispatchers
Tff7b72import T7ee787kotlinx.coroutines.SupervisorJob
Tff7b72import T7ee787no.nordicsemi.kotlin.ble.client.android.CentralManager
Tff7b72import T7ee787no.nordicsemi.kotlin.ble.client.android.native
Tff7b72import T7ee787javax.inject.Singleton
Tf0883e@Module
Tf0883e@InstallInTb4b4b4(Te6edf3SingletonComponentTff7b72::Te6edf3classTb4b4b4)
Tff7b72object T56d364BluetoothRepositoryModule Tb4b4b4{
Tf0883e@Provides
Tf0883e@Singleton
Tff7b72fun Td2a8ffprovideCentralManagerTb4b4b4(Tf0883e@ApplicationContext Te6edf3contextTb4b4b4: Te6edf3ContextTb4b4b4, Te6edf3coroutineScopeTb4b4b4: Te6edf3CoroutineScopeTb4b4b4)Tb4b4b4: Te6edf3CentralManager Tff7b72=
Te6edf3CentralManagerTb4b4b4.Te6edf3nativeTb4b4b4(Te6edf3contextTb4b4b4, Te6edf3coroutineScopeTb4b4b4)
Tf0883e@Provides
Tf0883e@Singleton
Tff7b72fun Td2a8ffprovideSingletonCoroutineScopeTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3CoroutineScope Tff7b72= Te6edf3CoroutineScopeTb4b4b4(Te6edf3SupervisorJobTb4b4b4(Tb4b4b4) Tff7b72+ Te6edf3DispatchersTb4b4b4.Te6edf3DefaultTb4b4b4)
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s